package com.mdxl.first.Dao;

public class MongoDAOFactory {

	/**
	 * 获取读写
	 * @return
	 */
	public static IMongoDAO getMongoDAO(){
		return MongoDAO.getInstance();
	}
	/**
	 * 获取只读
	 * @return
	 */
	public static IMongoDAO getMongoReadDAO(){
		return MongoReadDAO.getInstance();
	}
	/**
	 * 获取只写
	 * @return
	 */
	public static IMongoDAO getMongoWriteDAO(){
		return MongoWriterDAO.getInstance();
	}
}
